﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Server.Model;
using System.Runtime.Serialization;

namespace Server.Service.Model
{
    [DataContract]
    public class WCFCarModel
    {
        [DataMember]
        public int Id { get; set; }
        [DataMember]
        public double Range { get; set; }
        [DataMember]
        public string Description { get; set; }
        //public virtual ICollection<Car> Cars { get; set; }
        [DataMember]
        public WCFBatteryType BatteryType { get; set; }

        public WCFCarModel(CarModel carmodel)
        {
            this.Id = carmodel.Id;
            this.Range = carmodel.Range;
            this.Description = carmodel.Description;
        }
    }


}
